<?php
include('../config.php');
if (!isset($admin_username))
{
	// Not installed:
	?>
	<meta http-equiv="refresh" content="0;url=../install.php" />
	<?php
	exit;
}

if (!isset($_COOKIE['admin']))
{
?>
<meta http-equiv="refresh" content="0;url=./login.php" />
<?php
exit;
}
?>
<html>
	<head>
		<title>Admin</title>
		<link rel="stylesheet" href="./style/style.css" type="text/css">
	</head>
	<body>
		<div id="header">
		</div>
		<div id="container">
			<div id="menu">
				<a href="./index.php">Manage Pages</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="./addpage.php">Add Page</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="./configuration.php">Configuration</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="./logout.php">Logout</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="../index.php">View Site</a>
			</div>